package com.ruoyi.shops.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商铺出租对象 db_shoprental
 * 
 * @author wlx
 * @date 2023-03-17
 */
public class DbShoprental extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商铺租借id */
    private Integer id;

    /** 业主id */
    @Excel(name = "业主id")
    private Integer ownerId;

    /** 商铺id */
    private Integer shopsId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getShopsId() {
        return shopsId;
    }

    public void setShopsId(Integer shopsId) {
        this.shopsId = shopsId;
    }

    /** 起租时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起租时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leasetime;

    /** 截租时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截租时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date renttime;

    /** 租金费 */
    @Excel(name = "租金费")
    private BigDecimal rentalfee;

    private DbShops shops;

    public DbShops getShops() {
        return shops;
    }

    public void setShops(DbShops shops) {
        this.shops = shops;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOwnerId(Integer ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Integer getOwnerId() 
    {
        return ownerId;
    }
    public void setLeasetime(Date leasetime) 
    {
        this.leasetime = leasetime;
    }

    public Date getLeasetime() 
    {
        return leasetime;
    }
    public void setRenttime(Date renttime) 
    {
        this.renttime = renttime;
    }

    public Date getRenttime() 
    {
        return renttime;
    }
    public void setRentalfee(BigDecimal rentalfee) 
    {
        this.rentalfee = rentalfee;
    }

    public BigDecimal getRentalfee() 
    {
        return rentalfee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ownerId", getOwnerId())
            .append("leasetime", getLeasetime())
            .append("renttime", getRenttime())
            .append("rentalfee", getRentalfee())
            .toString();
    }
}
